﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ADA.Entity
{
    public class Common
    {
        public const string CONNECTION_STRING = "server=localhost;Trusted_Connection=yes;database=RTF_db";
        
        public const string SEND_EMAIL_DISPLAY_NAME = "SanGao.com";
        public const string SEND_EMAIL_SUBJECT = "[SanGao.com] ";
        public const int SEND_EMAIL_PORT = 587;
        public const string SEND_EMAIL_USER = "sangiaodichgao@gmail.com";
        public const string SEND_EMAIL_PASSWORD = "sangaodoraemon";
        public const string SEND_EMAIL_FROM = "sangiaodichgao@gmail.com";
        public const string SEND_EMAIL_CC = "";
        public const string SEND_EMAIL_BCC = "";

        public const string MESSAGE_CONFIRM_LOG_OUT = "Are you sure want to logout ?";
        public const string MESSAGE_CONFIRM_DELETE = "Are you sure want to delete ?";

        public const string MESSAGE_ERROR_IS_NUMBER = "Must be a number";
        public const string MESSAGE_ERROR_PRICE_RANGE = "Price must be between 0 and 1,000,000 VND";
        public const string MESSAGE_ERROR_PERCENT_RANGE = "Percent must be between 0 and 100 %";
        public const string MESSAGE_ERROR_NO_SELECT_ROW = "You must select one row";
        public const string MESSAGE_ERROR_SELECT_MORE_THAN_ONE_ROW = "You can select one account per each time";
        public const string MESSAGE_ERROR_NOT_SUPERADMIN = "Only super admin can show this section";
        public const string MESSAGE_ERROR_SQL_FAIL = "Cannot execute sql command";
        public const string MESSAGE_ERROR_CONNECT_DATABASE_FAIL = "Cannot connect to database";
        public const string MESSAGE_ERROR_ACCOUNT_NOT_EXIST = "Account not exist";
        public const string MESSAGE_ERROR_PASSWORD_INCORECT = "Password incorect";
        public const string MESSAGE_ERROR_CONFIRM_PASSWORD_INCORECT = "Confirm password incorect";
        public const string MESSAGE_ERROR_MUST_INPUT_DATA = "You must input all data require";
        public const string MESSAGE_ERROR_DIRECTORY_INVALID = "Directoty invalid";

        public static string URL_MAA = "";
        public static string URL_RICE = @"\MAA.Presentation\WebData\Image\RiceImage\";
        public static string URL_NEWS = @"\MAA.Presentation\WebData\Image\NewsImage\";
        public static string URL_PROFILE_IMAGE = @"\MAA.Presentation\WebData\Image\ProfileImage\";
        
        public const string MAA_URL_LOG_NAME = @"RTF-MAA.txt";

        public const string URL_SAVE_RICE = "../WebData/Image/RiceImage/";
        public const string URL_SAVE_NEWS = "../WebData/Image/NewsImage/";

        public const string DEFAULT_PROFILE_IMAGE_NAME = "defaultProfileImage.jpg";
        public const string DEFAULT_RICE_IMAGE_NAME = "defaultRiceImage.jpg";
        public const string DEFAULT_NEWS_IMAGE_NAME = "defaultNewsImage.png";

        public const string MESSAGE_ERROR_NOT_BE_IMAGE = "File upload not be an image";

        public const string MESSAGE_ERROR_NOT_JAPANESE = "検索語の中に部分的に含まれている単語を表示しています。";
    }
}
